<template>
  <div class="screen-page">
    <!-- 头部 -->
    <header class="header" ref="title_ref">
      <!-- 头部背景 -->
      <img src="../../public/static/img/header.png" alt="加载失败" />

      <span class="logo" ref="logo_ref" @click="toggleScreen">
        <img :style="logoStyle" src="../../public/static/img/logo.png" />
        <div :style="logoFontStyle" class="hometext">切换大屏</div>
      </span>

      <span class="logo-right">
        <img :style="logoStyle" src="../../public/static/img/quit.png" />
        <div :style="logoFontStyle" class="hometext">退出</div>
      </span>

      <!-- 消息 -->
      <div class="messagebox" :style="messageStyle" ref="messagebox_ref">
        <p class="msg">关于惠州举办佛委会通知：XXXXXXXXX 2020-12–1</p>
      </div>

      <!-- 标题 -->
      <div class="title" :style="titleStyle">宗教数据综合分析</div>

      <div class="head-box-left1" :style="headItemStyle" ref="box_ref">
        <p>惠州市</p>
      </div>

      <div class="head-box-left2" :style="headItemStyle">
        <p>民族数据分析</p>
      </div>

      <div class="head-box-right2" :style="headItemStyle">
        <p>政策法规</p>
      </div>

      <div class="head-box-right" :style="headItemStyle">
        <p>新闻资讯</p>
      </div>
    </header>

    <!-- 内容 -->
    <div class="screen-body">
      <section class="body-column">
        <!-- 左上 -->
        <div class="left-top">
          <img class="title-bg" src="../../public/static/img/title.png" alt="加载失败" />
          <div class="item-title-box" :style="chartTitleStyle" ref="item_title_box_ref">类别统计</div>
          <div class="allitem-wrap">
            <div class="rowitem-wrap">
              <div class="itembox" ref="lefttop_itembox_ref">
                <img
                  :style="leftTopItemIconStyle"
                  src="../../public/static/img/icon_zjcs.png"
                  alt="加载失败"
                />
                <span :style="leftTopItemFontStyle" class="itemtext">宗教场所</span>
                <span :style="leftTopItemFont2Style" class="itemnum">460</span>
              </div>
              <div class="itembox">
                <img
                  :style="leftTopItemIconStyle"
                  src="../../public/static/img/icon_zjtt.png"
                  alt="加载失败"
                />
                <span :style="leftTopItemFontStyle" class="itemtext">宗教团体</span>
                <span :style="leftTopItemFont2Style" class="itemnum">1240</span>
              </div>
              <div class="itembox">
                <img
                  :style="leftTopItemIcon2Style"
                  src="../../public/static/img/icon_zjry.png"
                  alt="加载失败"
                />
                <span :style="leftTopItemFontStyle" class="itemtext">宗教人员</span>
                <span :style="leftTopItemFont2Style" class="itemnum">52000</span>
              </div>
            </div>
            <div class="rowitem-wrap">
              <div class="itembox">
                <img
                  :style="leftTopItemIconStyle"
                  src="../../public/static/img/icon_zjhd.png"
                  alt="加载失败"
                />
                <span :style="leftTopItemFontStyle" class="itemtext">宗教活动</span>
                <span :style="leftTopItemFont2Style" class="itemnum">2520</span>
              </div>
              <div class="itembox">
                <img
                  :style="leftTopItemIcon2Style"
                  src="../../public/static/img/icon_zjcc.png"
                  alt="加载失败"
                />
                <span :style="leftTopItemFontStyle" class="itemtext">宗教财产</span>
                <span :style="leftTopItemFont2Style" class="itemnum">6800000</span>
              </div>
              <div class="itembox">
                <img
                  :style="leftTopItemIcon2Style"
                  src="../../public/static/img/icon_mjxycs.png"
                  alt="加载失败"
                />
                <span :style="leftTopItemFontStyle" class="itemtext">民间信仰场所</span>
                <span :style="leftTopItemFont2Style" class="itemnum">760</span>
              </div>
            </div>
          </div>
        </div>
        <!-- 左下 -->
        <div class="left-bottom">
          <img class="title-bg" src="../../public/static/img/title.png" alt="加载失败" />
          <div class="item-title-box" :style="chartTitleStyle">
            <span>场所类型占比</span>
          </div>
          <placetype></placetype>
        </div>
      </section>
      <section class="body-column-center">
        <!-- 中间 -->
        <div class="centerbox">
          <huizhou-map></huizhou-map>
          <div class="legend">
            <div class="legend-title" :style="legendTitleStyle" ref="legend_title_ref">宗教数量统计(4)</div>
            <div class="legend-body">
              <div class="legend-body-item" :style="legendBodyStyle" ref="legend_body_item_ref">
                <span class="legend-body-item-left">市直</span>
                <span class="legend-body-item-right">2</span>
              </div>
              <div class="legend-body-item" :style="legendBodyStyle">
                <span class="legend-body-item-left">惠城区</span>
                <span class="legend-body-item-right">1</span>
              </div>
              <div class="legend-body-item" :style="legendBodyStyle">
                <span class="legend-body-item-left">仲恺区</span>
                <span class="legend-body-item-right">0</span>
              </div>
              <div class="legend-body-item" :style="legendBodyStyle">
                <span class="legend-body-item-left">龙门县</span>
                <span class="legend-body-item-right">20</span>
              </div>
              <div class="legend-body-item" :style="legendBodyStyle">
                <span class="legend-body-item-left">博罗县</span>
                <span class="legend-body-item-right">20</span>
              </div>
              <div class="legend-body-item" :style="legendBodyStyle">
                <span class="legend-body-item-left">龙门县</span>
                <span class="legend-body-item-right">20</span>
              </div>
              <div class="legend-body-item" :style="legendBodyStyle">
                <span class="legend-body-item-left">博罗县</span>
                <span class="legend-body-item-right">20</span>
              </div>
              <div class="legend-body-item" :style="legendBodyStyle">
                <span class="legend-body-item-left">龙门县</span>
                <span class="legend-body-item-right">20</span>
              </div>
              <div class="legend-body-item" :style="legendBodyStyle">
                <span class="legend-body-item-left">博罗县</span>
                <span class="legend-body-item-right">20</span>
              </div>
            </div>
          </div>
        </div>
      </section>
      <section class="body-column">
        <!-- 右上 -->
        <div class="right-top">
          <img class="title-bg" src="../../public/static/img/title.png" alt="加载失败" />
          <div class="item-title-box" :style="chartTitleStyle">人员性别占比</div>
          <div class="allitem-wrap">
            <div class="rowitem">
              <div class="rowitem-rowtop">
                <div class="male"></div>
                <div class="female"></div>
                <div class="unkown"></div>
              </div>
              <div class="rowitem-rowbottom" ref="rowitem_rowbottom_ref">
                <span :style="sexPanelStyle" class="categoryColor">教职人员（3000）</span>
                <span :style="sexPanelStyle" class="maleColor">男性 30%</span>
                <span :style="sexPanelStyle" class="femaleColor">女性 70%</span>
                <span :style="sexPanelStyle" class="unkownColor">未知 5%</span>
              </div>
            </div>
            <div class="rowitem">
              <div class="rowitem-rowtop">
                <div class="male"></div>
                <div class="female"></div>
                <div class="unkown"></div>
              </div>
              <div class="rowitem-rowbottom">
                <span :style="sexPanelStyle" class="categoryColor">民主组织成员（6000）</span>
                <span :style="sexPanelStyle" class="maleColor">男性 30%</span>
                <span :style="sexPanelStyle" class="femaleColor">女性 70%</span>
                <span :style="sexPanelStyle" class="unkownColor">未知 5%</span>
              </div>
            </div>
            <div class="rowitem">
              <div class="rowitem-rowtop">
                <div class="male"></div>
                <div class="female"></div>
                <div class="unkown"></div>
              </div>
              <div class="rowitem-rowbottom">
                <span :style="sexPanelStyle" class="categoryColor">乡镇村责任人员（3000）</span>
                <span :style="sexPanelStyle" class="maleColor">男性 30%</span>
                <span :style="sexPanelStyle" class="femaleColor">女性 70%</span>
                <span :style="sexPanelStyle" class="unkownColor">未知 5%</span>
              </div>
            </div>
            <div class="rowitem">
              <div class="rowitem-rowtop">
                <div class="male"></div>
                <div class="female"></div>
                <div class="unkown"></div>
              </div>
              <div class="rowitem-rowbottom">
                <span :style="sexPanelStyle" class="categoryColor">财务领导人员（3000）</span>
                <span :style="sexPanelStyle" class="maleColor">男性 30%</span>
                <span :style="sexPanelStyle" class="femaleColor">女性 70%</span>
                <span :style="sexPanelStyle" class="unkownColor">未知 5%</span>
              </div>
            </div>
          </div>
        </div>
        <!-- 右下 -->
        <div class="right-bottom">
          <img class="title-bg" src="../../public/static/img/title.png" alt="加载失败" />
          <div class="item-title-box" :style="chartTitleStyle">产权、活动统计</div>
          <property-statistic></property-statistic>
          <div class="statistic-box">
            <div class="statistic-box-row">
              <div class="statistic-box-row-item" ref="statistic_box_row_item">
                <div :style="statisticStyle" class="statistic-box-row-item-num">280</div>
                <div :style="statisticStyle" class="statistic-box-row-item-name">慈善活动</div>
              </div>
              <div class="statistic-box-row-item">
                <div :style="statisticStyle" class="statistic-box-row-item-num">98</div>
                <div :style="statisticStyle" class="statistic-box-row-item-name">场所活动</div>
              </div>
              <div class="statistic-box-row-item">
                <div :style="statisticStyle" class="statistic-box-row-item-num">320</div>
                <div :style="statisticStyle" class="statistic-box-row-item-name">安全生产检查</div>
              </div>
            </div>
            <div class="statistic-box-row">
              <div class="statistic-box-row-item">
                <div :style="statisticStyle" class="statistic-box-row-item-num">400</div>
                <div :style="statisticStyle" class="statistic-box-row-item-name">文物基建</div>
              </div>
              <div class="statistic-box-row-item">
                <div :style="statisticStyle" class="statistic-box-row-item-num">300</div>
                <div :style="statisticStyle" class="statistic-box-row-item-name">动态基建</div>
              </div>
              <div class="statistic-box-row-item">
                <div :style="statisticStyle" class="statistic-box-row-item-num">200</div>
                <div :style="statisticStyle" class="statistic-box-row-item-name">房产权限</div>
              </div>
            </div>
          </div>
        </div>
      </section>
    </div>

    <!-- 脚部 -->
    <footer class="footer">
      <!-- 底部背景 -->
      <img class="footer-bg" src="../../public/static/img/footer.png" alt="加载失败" />
      <!-- 底部选项容器 -->
      <div class="footer-container">
        <div class="footer-container-item-twosize" ref="footer_twosize_ref">
          <img class="item-bg" src="../../public/static/img/left_normal.png" alt="加载失败" />
          <img
            class="item-icon"
            :style="iconStyle"
            src="../../public/static/img/icon_fo.png"
            alt="加载失败"
          />
          <span class="item-text" :style="twoSizeStyle">佛教</span>
        </div>
        <div class="footer-container-item" ref="footer_item_ref">
          <img class="item-bg" src="../../public/static/img/rect_normal.png" alt="加载失败" />
          <img
            class="item-icon"
            :style="iconStyle"
            src="../../public/static/img/icon_dao.png"
            alt="加载失败"
          />
          <span class="item-text" :style="itemStyle">道教</span>
        </div>
        <div class="footer-container-item" ref="footer_item_ref">
          <img class="item-bg" src="../../public/static/img/rect_normal.png" alt="加载失败" />
          <img
            class="item-icon"
            :style="iconStyle"
            src="../../public/static/img/icon_tianzhu.png"
            alt="加载失败"
          />
          <span class="item-text" :style="itemStyle">天主教</span>
        </div>
        <div class="footer-container-item" ref="footer_item_ref">
          <img class="item-bg" src="../../public/static/img/rect_normal.png" alt="加载失败" />
          <img
            class="item-icon"
            :style="iconStyle"
            src="../../public/static/img/icon_jidu.png"
            alt="加载失败"
          />
          <span class="item-text" :style="itemStyle">基督教</span>
        </div>
        <div class="footer-container-item-twosize" ref="footer_twosize_ref">
          <img class="item-bg" src="../../public/static/img/right_normal.png" alt="加载失败" />
          <img
            class="item-icon-right"
            :style="iconStyle"
            src="../../public/static/img/icon_ysl.png"
            alt="加载失败"
          />
          <span class="item-text-right" :style="twoSizeStyle">伊斯兰教</span>
        </div>
      </div>
    </footer>
  </div>
</template>

<script>
import placetype from '../components/placetype'
import huizhouMap from '../components/huizhou.vue'
import propertyStatistic from '../components/propertyStatistic'
export default {
  components: {
    placetype,
    huizhouMap,
    propertyStatistic
  },
  data() {
    return {
      logoFontSize: 0, // 头部logo自适应字体大小
      titleFontSize: 0, // 标题自适应字体大小
      footerItemFontSize: 0, // 脚部每一项的自适应字体大小
      footerTwosizeFontSize: 0, // 脚部左右两项的自适应字体大小
      messageFontSize: 0, // 消息盒子的自适应字体大小
      headItemFontSize: 0, // 头部盒子自适应字体大小
      chartTitleFontSize: 0, // 图表盒子标题自适应字体大小
      lefttopItemFontSize: 0, // 左上角盒子内自适应字体大小
      legendTitleFontSize: 0, // 地图图例标题自适应字体大小
      legendBodyFontSize: 0, // 地图图例内容自适应字体大小
      sexPanelFontSize: 0, // 性别面板内容自适应字体大小
      statisticFontSize: 0 // 统计面板内容自适应字体大小
    }
  },
  computed: {
    logoStyle() {
      return {
        width: this.titleFontSize / 4 + 'px',
        height: this.titleFontSize / 4 + 'px'
      }
    },
    logoFontStyle() {
      return {
        fontSize: this.logoFontSize + 'px'
      }
    },
    messageStyle() {
      return {
        fontSize: this.messageFontSize + 'px'
      }
    },
    headItemStyle() {
      return {
        fontSize: (this.headItemFontSize * 2) + 'px'
      }
    },
    titleStyle() {
      return {
        fontSize: (this.titleFontSize / 2) + 'px'
      }
    },
    itemStyle() {
      return {
        fontSize: this.footerItemFontSize + 'px'
      }
    },
    iconStyle() {
      return {
        width: this.footerItemFontSize * 8 + 'px',
        height: this.footerItemFontSize * 8 + 'px'
      }
    },
    twoSizeStyle() {
      return {
        fontSize: this.footerTwosizeFontSize + 'px'
      }
    },
    chartTitleStyle() {
      return {
        fontSize: (this.chartTitleFontSize * 2) + 'px'
      }
    },
    leftTopItemIconStyle() {
      return {
        width: this.lefttopItemFontSize * 8 + 'px',
        height: this.lefttopItemFontSize * 7 + 'px'
      }
    },
    leftTopItemIcon2Style() {
      return {
        width: this.lefttopItemFontSize * 6 + 'px',
        height: this.lefttopItemFontSize * 7 + 'px'
      }
    },
    leftTopItemFontStyle() {
      return {
        fontSize: this.lefttopItemFontSize * 3 + 'px'
      }
    },
    leftTopItemFont2Style() {
      return {
        fontSize: this.lefttopItemFontSize * 5 + 'px'
      }
    },
    legendTitleStyle() {
      return {
        fontSize: this.legendTitleFontSize + 'px'
      }
    },
    legendBodyStyle() {
      return {
        fontSize: this.legendBodyFontSize + 'px'
      }
    },
    sexPanelStyle() {
      return {
        fontSize: this.sexPanelFontSize + 'px'
      }
    },
    statisticStyle() {
      return {
        fontSize: (this.statisticFontSize * 3.6) + 'px'
      }
    }
  },
  mounted() {
    window.addEventListener('resize', this.adapterScreen)
    this.adapterScreen()
  },
  destroyed() {
    // 在组件销毁的时候需要把监听器取消掉，防止内存的泄露
    window.removeEventListener('resize', this.adapterScreen)
  },
  methods: {
    // 适配屏幕
    adapterScreen() {
      this.logoFontSize = this.$refs.logo_ref.offsetWidth / 100 * 3.6
      this.titleFontSize = this.$refs.title_ref.offsetWidth / 100 * 3.6
      this.footerItemFontSize = this.$refs.footer_item_ref.offsetWidth / 100 * 3.6
      this.footerTwosizeFontSize = this.$refs.footer_twosize_ref.offsetWidth / 100 * 3.6
      this.messageFontSize = this.$refs.messagebox_ref.offsetWidth / 100 * 3.6
      this.headItemFontSize = this.$refs.box_ref.offsetWidth / 100 * 3.6
      this.chartTitleFontSize = this.$refs.item_title_box_ref.offsetWidth / 100 * 3.6
      this.lefttopItemFontSize = this.$refs.lefttop_itembox_ref.offsetWidth / 100 * 3.6
      this.legendTitleFontSize = this.$refs.legend_title_ref.offsetWidth / 100 * 3.6
      this.legendBodyFontSize = this.$refs.legend_body_item_ref.offsetWidth / 100 * 3.6
      this.sexPanelFontSize = this.$refs.rowitem_rowbottom_ref.offsetWidth / 100 * 3.6
      this.statisticFontSize = this.$refs.statistic_box_row_item.offsetWidth / 100 * 3.6
    },
    // 切换到另一个大屏
    toggleScreen() {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="less" scoped>
.screen-page {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background-image: url('../../public/static/img/bg.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  cursor: pointer;

  .header {
    position: relative;
    > img {
      width: 100%;
    }
    .logo {
      position: absolute;
      left: 20px;
      top: 5px;
      color: #fff;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      cursor: pointer;
      .hometext {
        font-size: 15px;
        margin-left: 10px;
      }
    }
    .logo-right {
      position: absolute;
      right: 20px;
      top: 5px;
      color: #fff;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      cursor: pointer;
      .hometext {
        font-size: 15px;
        margin-left: 10px;
      }
    }
    .messagebox {
      position: absolute;
      top: 43%;
      left: 0;
      width: 19%;
      height: 44%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-sizing: border-box;
      padding: 0 30px;
      .msg {
        color: #2b94ff;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        word-break: break-all;
        word-wrap: break-word;
      }
    }

    .title {
      position: absolute;
      top: 23%;
      left: 50%;
      transform: translateX(-50%);
      font-size: 36px;
      text-align: center;
      color: #ffffff;
      line-height: 44px;
      letter-spacing: 1px;
      text-shadow: 0px 2px 1px 0px rgba(0, 40, 85, 0.4);
    }

    .head-box-left1 {
      position: absolute;
      top: 43%;
      left: 19%;
      width: 10%;
      height: 44%;
      text-align: center;
      box-sizing: border-box;
      color: #2b94ff;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .head-box-left2 {
      position: absolute;
      top: 43%;
      left: 27.55%;
      width: 10%;
      height: 44%;
      text-align: center;
      box-sizing: border-box;
      color: #2b94ff;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .head-box-right2 {
      position: absolute;
      top: 43%;
      right: 27.55%;
      width: 10%;
      height: 44%;
      text-align: center;
      box-sizing: border-box;
      color: #2b94ff;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .head-box-right {
      position: absolute;
      top: 43%;
      right: 19%;
      width: 10%;
      height: 44%;
      text-align: center;
      box-sizing: border-box;
      color: #2b94ff;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .screen-body {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .body-column {
      width: 25%;
      height: 100%;
      box-sizing: border-box;
      padding-top: 1%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      .left-top {
        position: relative;
        width: 100%;
        height: 46%;
        box-sizing: border-box;
        background-image: url('../../public/static/img/itemBg.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        z-index: 22;
        .title-bg {
          position: absolute;
          top: 0;
          left: 50%;
          width: 54%;
          height: 11%;
          transform: translateX(-50%);
        }
        .item-title-box {
          position: absolute;
          top: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 54%;
          height: 11%;
          text-align: center;
          color: #ffffff;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .allitem-wrap {
          width: 100%;
          height: 100%;
          box-sizing: border-box;
          padding: 11% 8% 8% 8%;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          align-items: center;
          .rowitem-wrap {
            width: 100%;
            height: 45%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .itembox {
              width: 28%;
              height: 100%;
              background-image: url('../../public/static/img/nomal_itembg.png');
              background-repeat: no-repeat;
              background-size: 100% 100%;
              box-sizing: border-box;
              padding: 2%;
              display: flex;
              flex-direction: column;
              justify-content: space-around;
              align-items: center;
              cursor: pointer;
              &:active {
                background-image: url('../../public/static/img/active_itembg.png');
              }
              .itemtext {
                color: #fff;
              }
              .itemnum {
                color: #64fcff;
              }
            }
          }
        }
      }
      .left-bottom {
        position: relative;
        width: 100%;
        height: 49.55%;
        box-sizing: border-box;
        background-image: url('../../public/static/img/itemBg.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        z-index: 22;
        .title-bg {
          position: absolute;
          top: 0;
          left: 50%;
          width: 54%;
          height: 11%;
          transform: translateX(-50%);
        }
        .item-title-box {
          position: absolute;
          top: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 54%;
          height: 11%;
          text-align: center;
          color: #ffffff;
          display: flex;
          justify-content: center;
          align-items: center;
        }
      }
      .right-top {
        position: relative;
        width: 100%;
        height: 46%;
        box-sizing: border-box;
        background-image: url('../../public/static/img/itemBg.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        z-index: 22;
        .title-bg {
          position: absolute;
          top: 0;
          left: 50%;
          width: 54%;
          height: 11%;
          transform: translateX(-50%);
        }
        .item-title-box {
          position: absolute;
          top: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 54%;
          height: 11%;
          text-align: center;
          color: #ffffff;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .allitem-wrap {
          width: 100%;
          height: 100%;
          box-sizing: border-box;
          padding: 11% 8% 6% 8%;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          align-items: center;
          .rowitem {
            width: 100%;
            height: 22%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            .rowitem-rowtop {
              width: 100%;
              height: 46%;
              box-sizing: border-box;
              display: flex;
              justify-content: space-between;
              align-items: flex-start;
              .male {
                width: 25%;
                height: 100%;
                background: #3ac8ff;
                box-sizing: border-box;
                border-radius: 40px;
              }
              .female {
                width: 60%;
                height: 100%;
                background: #ff7777;
                box-sizing: border-box;
                border-radius: 40px;
              }
              .unkown {
                width: 15%;
                height: 100%;
                background: #9074ff;
                box-sizing: border-box;
                border-radius: 40px;
              }
            }
            .rowitem-rowbottom {
              width: 100%;
              height: 46%;
              box-sizing: border-box;
              display: flex;
              justify-content: space-between;
              align-items: flex-end;
              .categoryColor {
                color: #fff;
              }
              .maleColor {
                color: #3ac8ff;
              }
              .femaleColor {
                color: #ff7777;
              }
              .unkownColor {
                color: #9074ff;
              }
            }
          }
        }
      }
      .right-bottom {
        position: relative;
        width: 100%;
        height: 49.55%;
        box-sizing: border-box;
        background-image: url('../../public/static/img/itemBg.png');
        background-repeat: no-repeat;
        background-size: 100% 100%;
        z-index: 22;
        .title-bg {
          position: absolute;
          top: 0;
          left: 50%;
          width: 54%;
          height: 11%;
          transform: translateX(-50%);
        }
        .item-title-box {
          position: absolute;
          top: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 54%;
          height: 11%;
          text-align: center;
          color: #ffffff;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .statistic-box {
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 50%;
          box-sizing: border-box;
          padding: 3% 6%;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          .statistic-box-row {
            width: 100%;
            height: 45%;
            box-sizing: border-box;
            display: flex;
            justify-content: space-between;
            .statistic-box-row-item {
              width: 30%;
              height: 100%;
              padding: 5px 0;
              box-sizing: border-box;
              background-image: url('../../public/static/img/rect_normal.png');
              background-repeat: no-repeat;
              background-size: 100% 100%;
              display: flex;
              flex-direction: column;
              justify-content: space-around;
              .statistic-box-row-item-num {
                text-align: center;
                color: #64fcff;
              }
              .statistic-box-row-item-name {
                text-align: center;
                color: #ffffff;
              }
            }
          }
        }
      }
    }
    .body-column-center {
      width: 46%;
      height: 100%;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .centerbox {
        position: relative;
        width: 100%;
        height: 83%;
        box-sizing: border-box;
        .legend {
          position: absolute;
          right: 0;
          top: -5%;
          width: 18%;
          height: 25%;
          background-image: url('../../public/static/img/nomal_itembg.png');
          background-repeat: no-repeat;
          background-size: 100% 100%;
          box-sizing: border-box;

          .legend-title {
            width: 100%;
            height: 15%;
            padding: 5px 0;
            text-align: center;
            color: #fff;
            box-sizing: border-box;
          }
          .legend-body {
            width: 100%;
            height: 85%;
            padding: 10px;
            box-sizing: border-box;
            overflow-y: scroll;
            .legend-body-item {
              width: 100%;
              box-sizing: border-box;
              display: flex;
              justify-content: space-around;
              align-items: center;
              color: #fff;
              .legend-body-item-left {
                flex: 1;
                text-align: left;
              }
              .legend-body-item-right {
                flex: 1;
                text-align: right;
              }
            }
          }
        }
      }
    }
  }

  .footer {
    .footer-bg {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 115px;
    }
    .footer-container {
      position: absolute;
      height: 110px;
      width: 44%;
      left: 28%;
      right: 28%;
      bottom: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .footer-container-item {
        position: relative;
        width: 16%;
        .item-bg {
          width: 100%;
        }
        .item-icon {
          position: absolute;
          top: 11%;
          left: 50%;
          transform: translateX(-50%);
          width: 46px;
          height: 46px;
        }
        .item-text {
          position: absolute;
          bottom: 18%;
          left: 50%;
          transform: translateX(-50%);
          color: #fff;
        }
      }
      .footer-container-item-twosize {
        position: relative;
        width: 23%;
        .item-bg {
          width: 100%;
        }
        .item-icon {
          position: absolute;
          top: 11%;
          left: 60%;
          transform: translateX(-50%);
          width: 46px;
          height: 46px;
          z-index: 23;
        }
        .item-text {
          position: absolute;
          bottom: 18%;
          left: 60%;
          transform: translateX(-50%);
          color: #fff;
        }
        .item-icon-right {
          position: absolute;
          top: 11%;
          right: 60%;
          transform: translateX(50%);
          width: 46px;
          height: 46px;
          z-index: 23;
        }
        .item-text-right {
          position: absolute;
          bottom: 18%;
          right: 60%;
          transform: translateX(50%);
          color: #fff;
        }
      }
    }
  }
}

/*::-webkit-scrollbar 滚动条整体部分 */
.legend-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
/** ::-webkit-scrollbar-track  滚动条的轨道（里面装有Thumb） */
.legend-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
  border-radius: 2px;
}
/** ::-webkit-scrollbar-thumb  滚动条里面的小方块，能向上向下移动（或往左往右移动，取决于是垂直滚动条还是水平滚动条） */
.legend-body::-webkit-scrollbar-thumb {
  background: linear-gradient(270deg, #6accff, #007cd7);
  border-radius: 10px;
}
/** 鼠标移入小方块的样式 */
.legend-body::-webkit-scrollbar-thumb:hover {
  background: #6accff;
}
/** ::-webkit-scrollbar-corner 边角，即两个滚动条的交汇处 */
.legend-body::-webkit-scrollbar-corner {
  background: #6accff;
}
</style>
